/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package app;

import libs.Attendance;
import libs.AttendanceImplDb;
import libs.Seminar;
import libs.Student;
import libs.Subject;


/**
 *
 * @author papi
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception{
        Attendance att = new AttendanceImplDb();

        testAttendance(att);
    }

    private static void testAttendance(Attendance att) throws Exception
    {
        Subject subject = new Subject("Java", "PB162");
        Student student = new Student("Jara Cimrman",1);
        Seminar seminar = new Seminar(subject, 1);

        att.removeSeminar(seminar);
        att.addSeminar(seminar);
        att.addStudent(student, seminar);
        att.present(student, seminar);
        att.getSeminars();
        att.removeSeminar(seminar);
        att.getSeminars();
    }
}
